
#pragma once

#include <IOSOperator.h>
using namespace irr;

namespace Irrlicht
{
	namespace Net
	{
		public ref class OSOperator
		{
		private:
			IOSOperator* insider;

		public:
			OSOperator(IOSOperator* ioso)
			{
				insider = ioso;
			}

			void CopyToClipboard(String^ text)
			{
				insider->copyToClipboard(MarshalString(text));
			}
			String^ GetTextFromClipboard()
			{
				return gcnew String(insider->getTextFromClipboard());
			}

			bool GetProcessorSpeedMHz(unsigned int* MHz)
			{
				unsigned int* speed = 0;
				bool b = insider->getProcessorSpeedMHz(speed);
				MHz = speed;
				return b;
			}
			bool GetSystemMemory(unsigned int* Total, unsigned int* Avail)
			{
				unsigned int* total = 0;
				unsigned int* avail = 0;
				bool b = insider->getSystemMemory(total, avail);
				Total = total;
				Avail = avail;
				return b;
			}
		};
	}
}